﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Console1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            for (int i = 1; i <= 24; i++)
            {
                DropDownList_BeginTime_HH.Items.Add(new ListItem(i + "", i + ""));
                DropDownList_EndTime_HH.Items.Add(new ListItem(i + "", i + ""));
                DropDownList_Time_HH.Items.Add(new ListItem(i + "", i + ""));
            }
            for (int i = 1; i <= 60; i++)
            {
                DropDownList_BeginTime_MM.Items.Add(new ListItem(i + "", i + ""));
                DropDownList_EndTime_MM.Items.Add(new ListItem(i + "", i + ""));
                DropDownList_Time_MM.Items.Add(new ListItem(i + "", i + ""));
            }
            DropDownList_TimeInterval.Items.Add(new ListItem("15", "15"));
            DropDownList_TimeInterval.Items.Add(new ListItem("30", "30"));
            DropDownList_TimeInterval.Items.Add(new ListItem("45", "45"));
            DropDownList_TimeInterval.Items.Add(new ListItem("60", "60"));
            
        }
    }
    protected void Button_Add_Click(object sender, EventArgs e)
    {
        RadListBox1.Items.Add(new Telerik.Web.UI.RadListBoxItem("[1]  时间<03：30>  预置位<012>"));
    }
}